import Layout from "@/layout/index.vue";

export const docProcessRoutes = [
    {
        path: '/document',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['doc:process:page'],
                path: 'process/view/:docId(\\d+)',
                component: () => import('@/views/document/process/documentMain.vue'),
                name: 'DocProcessView',
                meta: { title: '办理合同详情', activeMenu: '/document/process' }
            }
        ]
    },
    {
        path: '/document',
        hidden: true,
        children: [
            {
                path: 'processing/common/openMainFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processing/flowInfo/common/mainFile.vue'),
                name: 'DocProcessingCommonMainFile',
                meta: { title: '公文正文' }
            },
            {
                path: 'processing/audit/openApprovalFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processing/flowInfo/audit/approvalFile.vue'),
                name: 'DocProcessingAuditApprovalFile',
                meta: { title: '公文呈批表' }
            },
            {
                path: 'processing/jointSign/openApprovalFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processing/flowInfo/jointSign/approvalFile.vue'),
                name: 'DocProcessingJointSignApprovalFile',
                meta: { title: '公文呈批表' }
            },
            {
                path: 'processing/leaderSign/openApprovalFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processing/flowInfo/leaderSign/approvalFile.vue'),
                name: 'DocProcessingLeaderSignApprovalFile',
                meta: { title: '公文呈批表' }
            },
            {
                path: 'processing/sign/openFinalFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processing/flowInfo/sign/finalFile.vue'),
                name: 'DocProcessingSignFinalFile',
                meta: { title: '公文正文' }
            },
            //已办
            {
                path: 'processed/openMainFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processed/flowInfo/mainFile.vue'),
                name: 'DocProcessedMainFile',
                meta: { title: '公文正文' }
            },
            {
                path: 'processed/openFinalFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processed/flowInfo/finalFile.vue'),
                name: 'DocProcessedFinalFile',
                meta: { title: '公文正文' }
            },
            {
                path: 'processed/openApprovalFile/:docId(\\d+)',
                component: () => import('@/views/document/process/processed/flowInfo/approvalFile.vue'),
                name: 'DocProcessedApprovalFile',
                meta: { title: '公文呈批表' }
            },
        ]
    },
]